package cn.iocoder.yudao.module.digital.controller.admin.thesis.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;
import org.springframework.format.annotation.DateTimeFormat;
import java.time.LocalDateTime;
import com.alibaba.excel.annotation.*;
import cn.iocoder.yudao.framework.excel.core.annotations.DictFormat;
import cn.iocoder.yudao.framework.excel.core.convert.DictConvert;

@Schema(description = "管理后台 - 论文 Response VO")
@Data
@ExcelIgnoreUnannotated
public class ThesisRespVO {

    @Schema(description = "id", requiredMode = Schema.RequiredMode.REQUIRED, example = "24392")
    @ExcelProperty("id")
    private Integer id;

    @Schema(description = "论文标题", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("论文标题")
    private String title;

    @Schema(description = "发表时间", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("发表时间")
    private LocalDateTime postedTime;

    @Schema(description = "发表刊物/论文集", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("发表刊物/论文集")
    private String publications;

    @Schema(description = "所属单位", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty(value = "所属单位", converter = DictConvert.class)
    @DictFormat("affiliation") // TODO 代码优化：建议设置到对应的 DictTypeConstants 枚举类中
    private Integer affiliation;

    @Schema(description = "作者", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("作者")
    private String author;

    @Schema(description = "佐证地址", requiredMode = Schema.RequiredMode.REQUIRED, example = "https://www.chanchat.cn")
    @ExcelProperty("佐证地址")
    private String evidenceUrl;

    @Schema(description = "作者类型", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    @ExcelProperty(value = "作者类型", converter = DictConvert.class)
    @DictFormat("author_type") // TODO 代码优化：建议设置到对应的 DictTypeConstants 枚举类中
    private Integer authorType;

    @Schema(description = "贡献率", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("贡献率")
    private String rate;

    @Schema(description = "论文类型", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    @ExcelProperty(value = "论文类型", converter = DictConvert.class)
    @DictFormat("type") // TODO 代码优化：建议设置到对应的 DictTypeConstants 枚举类中
    private Integer type;

    @Schema(description = "保留字段")
    @ExcelProperty("保留字段")
    private String reserved1;

    @Schema(description = "保留字段")
    @ExcelProperty("保留字段")
    private String reserved2;

    @Schema(description = "保留字段")
    @ExcelProperty("保留字段")
    private String reserved3;

    @Schema(description = "保留字段")
    @ExcelProperty("保留字段")
    private String reserved4;

    @Schema(description = "保留字段")
    @ExcelProperty("保留字段")
    private String reserved5;

}